<template>
  <div class="rightTopBorder">
    <div class="rectangle" v-for="(value, index) in props.list" :key="index">
      <div class="rectangleLeftImg">
        <img :src="require('../assets/' + value.src)" />
      </div>
      <div class="rectangleRightImg">
        <span>{{ value.time }}</span>
        <span>{{ value.text }}</span>
      </div>
    </div>
  </div>
</template>
<script setup>
import { ref, reactive, defineProps, onMounted, watch } from "vue";

const props = defineProps({
  list: {
    type: Array,
  },
});

const valList = reactive([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);

onMounted(() => {});
</script>
<style lang='less' scoped>
.rightTopBorder {
  width: 100%;
  /*height: 44%;*/
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .rectangle {
    width: 30%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    .rectangleLeftImg {
      display: flex;
      align-items: center;
      justify-content: center;
      // width: 30%;
      /*width: 38%;*/
      /*height: 100%;*/
      width: 52px;
      height: 52px;
      background-image: url("../assets/iconBorder/zuoce.png");
      background-repeat: no-repeat;
      background-size: 100% 100%;
      img {
        width: 26px;
        height: 26px;
      }
    }
    .rectangleRightImg {
      /*width: 70%;*/
      width: 120px;
      height: 90%;
      background-image: url("../assets/iconBorder/youce.png");
      background-repeat: no-repeat;
      background-size: 100% 100%;
      position: relative;
      left: -3px;
      /*left: -5px;*/
      display: flex;
      flex-direction: column;
      justify-content: center;
      span:first-child {
        color: #d6e3ea;
        font-size: 13px;
      }
      span:last-child {
        color: #979ba1;
        font-size: 12px;
      }
      span {
        text-align: center;
        display: block;
      }
    }
  }
}
</style>
